<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>北京甜馨科技</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .js-ul {
            height: 80vh;
            overflow-y: auto;
            position: relative;
        }

        .js-ul .list {
            height: 500px;
            background: #eee;
            border-bottom: 1px solid #fff;
        }
    </style>
</head>

<body>
    <div class="js-ul" id="js-ul">
        <li class="list">1</li>
        <li class="list">1</li>
        <li class="list">1</li>
        <li class="list">1</li>
        <li class="list">1</li>
        <li class="list">1</li>
        <li class="list">1</li>
    </div>
</body>
<script>
    function goToBottom() {
        var element = document.getElementById('js-ul');
        element.scrollIntoView({
            block: "end",
            behavior: "auto"
        });
    }
</script>

</html>